//
//  NetEnum.swift
//  Waterfall
//
//  Created by jh on 2023/6/16.
//

import Foundation

enum SoError: Error, Codable {
    case responseError
    case resuestError
    case notFound
    case fileError
}

struct SoResult: Codable {
    var descr: String?
    var status: Int?
    var error: SoError?
    var file: FileItem?
}

struct FileItem: Codable {
    var name: String
    var path: String
    var date: String
    var isDirectory: Bool
    var size: NSInteger
}

struct Responsed: JSONable {
    var descr: String
    var state: Bool
    var timeTsp: String
    var temp: String?
}
